package common;

import java.io.Serializable;

/**
 * This class represents student's answer of exam question
 *
 */
public class StudentAnswer implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3058751548715940791L;
	private int studentId;
	private String examCode;
	private int questionId;
	private int answer;
	
	/**
	 * Student ID getter
	 * @return Student ID
	 */
	public int getStudentId() {
		return studentId;
	}
	
	/**
	 * Student ID setter
	 * @param studentId Student ID
	 */
	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}
	
	/**
	 * Exam execution code getter
	 * @return Exam Execution Code
	 */
	public String getExamCode() {
		return examCode;
	}
	
	/**
	 * Exam execution code setter
	 * @param examCode Exam Execution Code
	 */
	public void setExamCode(String examCode) {
		this.examCode = examCode;
	}
	
	/**
	 * Question ID getter
	 * @return Question ID
	 */
	public int getQuestionId() {
		return questionId;
	}
	
	/**
	 * Question ID setter
	 * @param questionId Question ID
	 */
	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}
	
	/**
	 * Question answer getter
	 * @return Question answer
	 */
	public int getAnswer() {
		return answer;
	}
	
	/**
	 * Question answer setter
	 * @param answer Question answer
	 */
	public void setAnswer(int answer) {
		this.answer = answer;
	}

}
